﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;

namespace EEDS.Core.IO
{
    public sealed class IO
    {
        public static void WriteEmblemToStream(Emblem emblem, Stream stream, IEmblemRenderer renderer)
        {
            renderer.RenderEmblem(emblem).Save(stream, ImageFormat.Png);
        }

        public static void WriteEmblemToFile(Emblem emblem, string file, IEmblemRenderer renderer)
        {
            renderer.RenderEmblem(emblem).Save(file, ImageFormat.Png);
        }
    }
}
